using UnityEngine;
using System.Collections;

/// \class  gkTestPerformanceEventHandlerReceiver
/// \brief  Test the performance of event handler
[AddComponentMenu("GK/Test/Performance/Message/gkTestPerformanceEventHandlerReceiver")]
[RequireComponent(typeof(gkEventComponent))]
public class gkTestPerformanceEventHandlerReceiver : MonoBehaviour
{	
	/// \brief  Called when the component is enabled
	void OnEnable() 
	{
		// Listen the shock event of the owner
		GetComponent<gkEventComponent>().AddEventHandler("ReceiveMessage", ReceiveMessage);
	}
	
	/// \brief  Called when the component is disabled
	void OnDisable() 
	{	
		// Remove the shock event of the owner
		GetComponent<gkEventComponent>().RemoveEventHandler("ReceiveMessage", ReceiveMessage);
	}
	
	/// Handle the boost event
	void ReceiveMessage(Object a_rEvent)
	{
	}
}